<div class="SipeiInfo border_3 pb20 centered back_bgf">
 	<?php
 	$form = $this->beginWidget('CActiveForm', array(
 	'action' => Yii::app()->createUrl($this->route),
 	'method' => 'POST',
 	'id' => 'searchForm'));
	?>
    <table class="fontc_666 height32">
      <tbody>
        <tr>
          <td width="120" align="right" class="pt20 pr5">规则代码：</td>
          <td width="375" class="pt20"><input type="text"  name="info[code]" value="" class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
        <tr>
          <td align="right" class="pt15 pr5">规则名称：</td>
          <td class="pt15"><input type="text" value="" name="info[name]"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
         <tr>
          <td align="right" class="pt15 pr5">对应数据表名称：</td>
          <td class="pt15">
                <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3"> 
                    <span class="fl select_shelter"> 
                    <select name="info[tablename]" class="fl fontc_666">
                    <?php $tableinfo = ZTask::_gettable();foreach ($tableinfo as $b=>$t):?>
                    	<option value="<?php echo $b;?>"><?php echo $t;?></option>
                   	<?php endforeach;?>
                    </select> 
                    </span> 
                </span>
         </td>
        </tr>
         <tr>
          <td align="right" class="pt15 pr5">导入方式：</td>
          <td class="pt15">
            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3"> 
                <span class="fl select_shelter"> 
                <select name="info[mode]" class="fl fontc_666">
                        <option value="0">新增</option>
                        <option value="1">更新</option>
                </select> 
                </span> 
            </span>
          </td>
        </tr>
         <tr>
          <td align="right" class="pt15 pr5">excel读取起始行数：</td>
          <td class="pt15"><input type="text" value="" name="info[row]"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
         <tr>
          <td align="right" class="pt15 pr5">excel标识列：</td>
          <td class="pt15"><input type="text" value="" name="info[show]"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
         <tr>
          <td align="right" class="pt15 pr5">数据表标识列：</td>
          <td class="pt15"><input type="text" value="" name="info[tablerow]"  class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" /></td>
        </tr>
         <tr>
          <td align="right" class="pt15 pr5">Excel模板：</td>
          <td class="pt15">
              <input type="button" class="fl b_a_n border_3 back_bgfyg w80 height32 fontc_FFF fonts_12" style="" onclick="path.click()" value="浏览" />  
              <input type="text" id="upfile" value="未选择文件" name="info[stencil]" style="border:none;color:#67b94b;" class="fl w200 ml10 height32" />
              <input type="file" onchange="upfile.value=this.value" style="position:relative;top:-32px;filter:alpha(opacity=0);opacity:0;left:8px;width:30px;height:32px;" id="path" />	
          </td>
        </tr>
        <tr>
          <td align="right" class="pt5 pr5">是否生效：</td>
          <td class="pt5"><input type="checkbox" name="info[status]" value='1' checked  /></td>
        </tr>
        <tr>
          <td align="right" valign="top" class="pt5 pr5">备注：</td>
          <td class="pt5"><textarea class="col3 pt6 pr10 pb6 pl10 border_c border_3 fontc_666" name="info[remark]" ></textarea></td>
        </tr>
        <tr>
          <td align="right" class="pt20 pr5 pb20"></td>
          <td class="pt20 pb20"><input type="button" value="取消"  onclick="api.close()" class="b_a_n border_3 back_bgb w80 height32 fontc_FFF fonts_12 mr10" /><input type="submit" value="保存" name="submit" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12" /></td>
        </tr>
      </tbody>
    </table>
	  <?php
	  $this->endWidget();
	?>
</div>
<?php exit; ?>